Defining the Intent
When creating a flow, you provided an initial utterance (the first training phrase) for the bot to match the user’s intent. Equipping your bot with multiple training phrases per flow and training it enhances its ability to accurately discern user intent.
To manage training phrases, follow these steps:
Step 1. Access flow training phrases
To access the flow training phrases, use one of the following two options
- Using the Flow Diagram, click the Info icon (
) in the Actions menu.
- In the Flow Designer's list view, navigate to the Flows page and click the Edit icon (
) next to the desired flow. If when you last viewed the flow you used list view, the Flow page appears by default on the Steps tab; otherwise the Flow diagram appears. Click the Details tab.
DRUID groups the flow training phrases per bot language. By default it displays the training phrases defined in bot default language. To manage the training phrases in a specific bot language, from the Languages field, select the desired one.
Step 2. Add training phrases
To add a new training phrase, place the cursor inside the Add new training phase field and enter the desired training phrase, then click the Add icon.
The training phrase is displayed at the bottom of the listing.
Keep in mind key points when defining intents.
You can add as many training phrases as needed. The DRUID built-in ML engine will also recognize and match similar phrases automatically.
Save your settings after adding training phrases.
Step 3. Train the bot with new intents
After adding training phrases, train the bot with the intents. On the main menu, click NLU > Configurations. Click on the Intents tab, then click the Train button to start training the bot with the newly added intents and training phrases.
The training model includes ALL training phrases defined on ALL flows associated with the respective bot.
Once trained, the following information is available in the Train area:
- LastTrainedOn – the date and time when the model was last trained on. It has the following format: x days ago (YYYY-MM-DD HH:MM:SS)
- Status – the status of the model training (Trained / Untrained).
- DownloadTrainErrors – Download (in your default Download folder) a JSON file which contains the errors occurred (if any) during the last NLP model training.
- DownloadTrainLog - Download (in your default Download folder) a JSON file which contains comprehensive training phrases data: status per training phrases, score for each utterance, etc.
For more information on the NLP engine settings, see Setting Up the Bot s NLP Engine.
After adding the training phrases and training the bot with the new intent, you need to define the dialog.
Edit Training Phrases
Edit existing phrases by modifying the text and saving the flow. Note that a warning message may appear if the flow has no associated roles.
Delete Training Phrases
Delete training phrases by clicking the delete icon inline.